# -*-coding:utf-8-*-
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from properties import props

connector = props.get('mysql.connector')
db_engine = create_engine(connector, echo=True, pool_size=20)

DBSession = sessionmaker(db_engine)
# conn = db_engine.connect()

Base = declarative_base()
